#include "controlDevice.h"
#include <stdlib.h>
bathroomLightOpen(int pinNum)
{
  digitalWrite(pinNum, LOW);
};

bathroomLightClose(int pinNum)
{
  digitalWrite(pinNum, HIGH);
};
bathroomLightInit(int pinNum)
{
  pinMode(pinNum, OUTPUT);
  digitalWrite(pinNum, HIGH);
};
bathroomLightStaus(int staus){

};
struct Devices bathroomLight = {
    .devicesName = "bathroomLight",
    .pinNum = 0,
    .open = bathroomLightOpen,
    .close = bathroomLightClose,
    .deviceInit = bathroomLightInit,
    .changeStaus = bathroomLightStaus

};
struct Devices *addBathroomLightToDeviceLink(struct Devices *pthead)
{
  if (pthead == NULL)
  {
    return &bathroomLight;
  }
  else
  {

    bathroomLight.next = pthead;
    pthead = &bathroomLight;
    return pthead;
  }
}
